package org.jackysoft.service;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Collection;

import javax.servlet.http.Part;

import org.jackysoft.data.ServiceProvider;
import org.jackysoft.entity.Accessory;
import org.springframework.dao.DataAccessException;

public interface AttachmentService extends ServiceProvider<Accessory> {

	void create(Part[] uploads, long workflowId) throws DataAccessException,
			FileNotFoundException, IOException;

	Collection<Accessory> findByWorkflow(long workflowId);
	
	void remove(Accessory bean, Long workflowId) throws DataAccessException;
}
